﻿using System;

namespace AdTech.Snap
{
    #pragma warning disable 1591
    internal class Log
    {
        // Fields
        private static ILogger loggerFacade;

        // Properties
        public static ILogger Default
        {
            get
            {
                if (loggerFacade == null)
                    throw new InvalidOperationException("LoggerFacade not yet initialized");
                return loggerFacade;
            }
        }

        // Public Methods
        public static void Create(ILogger logger)
        {
            loggerFacade = logger;
        }
    }
    #pragma warning restore 1591
}
